package practice;

public class practice002 {
	// 一个数是完全平方数且加减5还是完全平方数
	public static void main(String[] args) {
		double x, y, x1, x2, x3;
		for (int i = 6; i < 100; i++) {
			y = i * i;
			for (int j = i + 7; j < 100; j++) {
				x = j * j;
				x1 = (x + 5 * y);
				x3 = Math.sqrt(x1);
				if (Math.floor(x3) != x3)
					continue;
				x2 = (x - 5 * y);
				if (x2 < 0)
					continue;
				x3 = Math.sqrt(x2);
				if (Math.floor(x3) != x3)
					continue;
				System.out.println(x);
				System.out.println(y);
			}
		}

	}

}
